<?php
//UMA
use App\Models\CustomerHistory;
use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::prefix('v1')->namespace('Api')->middleware('throttle:60,1', 'auth:api')->group(function () {
    // Route::middleware('auth:api')->get('/user', function (Request $request) {
    //     return $request->user();
    // });
    Route::get('/input', 'InputController@index');
    Route::post('/contact', 'ContactController@store')->middleware('contactinfo.refactor');
    Route::post('/score', 'ScoreController@store')->middleware('nikkei.check');
    Route::get('/zip', 'ZipController@index');
    Route::get('/mailinfo', 'MailController@index');
});

Route::post('v1/auth', 'Api\AuthController@login');
